﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="DeviceRubbishAdd.aspx.cs" Inherits="DeviceRubbishAdd" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>无标题页</title>
    <link href="css/style.css" rel="stylesheet" type="text/css" />
    <script language=javascript>
     function seltime(inputName)
     {
	window.open('seltime.aspx?InputName='+inputName+'','','width=250,height=220,left=360,top=250,scrollbars=yes');  
     }
   </script>
</head>
<body>
     <form method="post" runat="server" id="frmAnnounce">
      <table width=842 border=0 cellpadding=0 cellspacing=0 align="center">
        <tr style="color:blue;font-size:14px;">
	  <td style="height: 14px; width: 502px;">
          <img src="images/ADD.gif" width=14px height=14px>设备报废管理--&gt;设备报废登记</td>
        </tr>
        <tr>
        <td style="height: 18px">
            <br />
            请选择设备所在类别:<asp:DropDownList ID="DeviceType" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DeviceType_SelectedIndexChanged">
            </asp:DropDownList>
            &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
            &nbsp; &nbsp; 请选择设备:&nbsp;<asp:DropDownList ID="Device" runat="server" AutoPostBack="True" OnSelectedIndexChanged="Device_SelectedIndexChanged">
            </asp:DropDownList>&nbsp;<br />
            <br />
            报废时间:
            <asp:TextBox ID="DeviceRubbishTime" runat="server" Width="85px"></asp:TextBox>
            <input class="submit" name="Button" onclick="seltime('DeviceRubbishTime')" type="button"
                value="选择" />
            &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;
            &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 折旧金额:<asp:TextBox
                ID="DeprecitionMoney" runat="server" Width="82px"></asp:TextBox>元<br />
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="DeviceRubbishTime"
                ErrorMessage="请选择报废时间!"></asp:RequiredFieldValidator>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="DeprecitionMoney"
                ErrorMessage="请填写折旧金额！"></asp:RequiredFieldValidator>
            <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToValidate="DeprecitionMoney"
                ErrorMessage="金额输入不正确!" Operator="DataTypeCheck" Type="Currency"></asp:CompareValidator>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="DeviceRubbishReason"
                ErrorMessage="请填写报废原因!"></asp:RequiredFieldValidator>
            <asp:CompareValidator ID="CompareValidator2" runat="server" ControlToValidate="DeviceRubbishTime"
                ErrorMessage="报废时间不正确!" Operator="DataTypeCheck" Type="Date"></asp:CompareValidator></td>
       <td style="width: 99px">
           <asp:Image ID="DeviceImage" runat="server" Height="87px" Width="96px" /></td>
       </tr>
       <tr>
        <td colspan=2>
            报废原因:<asp:TextBox ID="DeviceRubbishReason" runat="server" Height="61px" Width="364px" TextMode="MultiLine"></asp:TextBox></td>
       </tr>
       <tr>
       <td colspan=2 style="height: 18px" align="center">
           <asp:Button ID="Btn_Rubbish" runat="server" Text="报废" OnClick="Btn_Rubbish_Click" />&nbsp;
           </td>
       </tr>
     </table>
         &nbsp;
         <asp:SqlDataSource ID="DepartmentDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
             SelectCommand="SELECT [departmentName], [departmentId] FROM [departmentInfo]"></asp:SqlDataSource>
    </form>
</body>
</html>
